<?PHP
include 'connect.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
	$to = $_POST['city'];
	$from = $_POST['city2'];
	$to = htmlspecialchars($to);
	$from = htmlspecialchars($from);
	$SQL = "SELECT * FROM `lift_requests` WHERE  `lift_depdst`='$to' AND `lift_destdst`='$from' ";
	$SQL1 = "SELECT * FROM `lift_offers` WHERE  `lift_depdst`='$to' AND `lift_destdst`='$from' ";
	$result = mysql_query($SQL,$SQL1);
	$num_rows = mysql_num_rows($result);	
	if ($num_rows == 0)
	{
		print " No result found";
	}else
	{
		while ($db_field = mysql_fetch_assoc($result)) 
		{
			print "<p align="."justify".">";
			print "<b>". $db_field['title'] ."</b>". "<BR>";
			print "<br>";
			print $db_field['description'] . "<BR>" . "<BR>";
			print"</p>";
			print "<hr>";
			print "<br>";
			include'close_connect.php';
		}
	}
}
else 
{
	print "Database NOT Found ";
	include 'close_connect.php';
}
?>